package cn.sicnu.cs.employment.mapper;

import cn.sicnu.cs.employment.domain.entity.EmployeeCompany;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
public interface EmployeeCompanyMapper extends BaseMapper<EmployeeCompany> {

    void insertEmployeeCompany(@Param("empId")Long empId);

    void addEmployeeToCompany(@Param("time")String time, @Param("empId")Long empId, @Param("comId")Long comId);

    void deprecateEmployeeToCompany(@Param("time")String time, @Param("empId")Long empId, @Param("comId")Long comId);

//    String getInTime(@Param("empId")Long empId, @Param("comId")Long comId);
//
//    String getOffTime(@Param("empId")Long empId, @Param("comId")Long comId);

    EmployeeCompany getEmpComInfo(@Param("empId")Long empId, @Param("comId")Long comId);

    Set<EmployeeCompany> selectAllByEmp(@Param("empId")Long empId);

    Long selectComIdByEmp(@Param("id") Long currentEmpId);

//    Set<EmployeeCompany> getAllEmpComByEmp(@Param(""))


}
